package com.atguigu.juc;

/**
 * @Author: shenhao
 * @CreatTime: 2024/9/27 15:46
 * @Version: 1.0
 * 三个售票员卖50张票
 */
public class SaleTicket {
    public static void main(String[] args) {
        TicketTarget target=new TicketTarget();
        Thread thread1 = new Thread(target,"售票员1");
        Thread thread2 = new Thread(target,"售票员2");
        Thread thread3 = new Thread(target,"售票员3");
        thread1.start();
        thread2.start();
        thread3.start();
    }
}
